//
//  IndexSegment.h
//  yigou
//
//  Created by SunChao on 17/1/13.
//  Copyright © 2017年 hanyiwang. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol CJNaviViewDelegate <NSObject>

- (void)D_selectedTag:(NSInteger)tag;

@end
@interface CJNaviButton:UIButton

@property (nonatomic, weak) UIView *lineView;
@end
@interface CJNaviView : UIView


- (instancetype)initWithNumberOfTitles:(NSArray *)titles andFrame:(CGRect)frame delegate:(id<CJNaviViewDelegate>)delegate selectedBtn:(NSInteger)buttonTag;

@end


@interface CJNaviView()

@property (nonatomic, weak) id<CJNaviViewDelegate> delegate;

@property (nonatomic, strong) CJNaviButton *lastClickButton;
- (void)A_choosed:(CJNaviButton *)button;

@end
